package com.cloud.feign.service;

import com.cloud.configures.CustomFeignConfigure;
import com.cloud.feign.bean.User;
import com.cloud.feign.configure.SchedualServiceHiHystric;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
//, fallback = SchedualServiceHiHystric.class
@FeignClient(value = "server-producer2", configuration = CustomFeignConfigure.class)
public interface FeignClient2 {

    @RequestLine("GET /hi/{name}")
    public String sayHi(@Param("name") String name);

}
